<?php

require_once(ABSPATH . 'portal/main.php');

class Service extends Main {
	
	function Work() {
	  	parent::Main();
	  	$this->database();	  	
	}
	
	function index() {
		$this->do_service("select * from service");
	}
	  
	function show($sign) {
		$this->do_service("select * from service where url_name='$sign'");  		
	}
	
	function do_service($sql) {
		$service_list = $this->db->find_all('service');
		$service = $this->db->find_row($sql);  
		$data = array(
			'service' => $service,
			'service_list' => $service_list
		);
		$this->my_view('portal/service', $data);	
	}
	  
}	  
?>